package com.hevery.beans.io;

import java.net.URL;

/**
 * @description: UrlResource加载器，根据location来会的对应的UrlResource
 * @author: hongyu.zhang
 * @create: 2018-03-20
 **/
public class ResourceLoader {
    public Resource getResource(String location){
        URL url = this.getClass().getClassLoader().getResource(location);
        return new UrlResource(url);
    }
}
